import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);
const vuexStore = new Vuex.Store({
	state: {
		userInfo: {},
		token: '',
		tabbar: [{
					iconPath: "/static/example/component.png",
					selectedIconPath: "/static/example/component_select.png",
					text: '首页',
					count: 2,
					isDot: true,
					pagePath: "/pages/index/index"
				},
				{
					iconPath: "/static/example/faqi.png",
					selectedIconPath: "/static/example/faqi_select.png",
					text: '发起',
					midButton: true,
					pagePath: "/pages/processCate/processCate"
				},
				{
					iconPath: "/static/example/mine.png",
					selectedIconPath: "/static/example/mine_select.png",
					text: '我的',
					pagePath: "/pages/mine/index"
				},
			]
	},
	mutations: {
		setUserInfo(state, obj) {
			state.userInfo = obj
			uni.setStorageSync('userInfo', obj)
		},
		setToken(state, obj) {
			state.token = obj
			uni.setStorageSync('token', obj)
		}
	},
	actions: {
		
	},
	getUser: {

	},
});

export default vuexStore
